Add page title as a javacript variable to specific posts

Use a shortcode. In your plugin or theme (functions.php) add:

add_action( 'after_setup_theme', 'wpse_42534_add_permalink_shortcode' );
function wpse_42534_add_permalink_shortcode()
{
    add_shortcode( 'permalink', 'get_permalink' );
}

Now, your users can use the string [permalink] anywhere in the post to print the URI to the current post or page.

Oh, and welcome to WordPress Stack Exchange!