$(document).ready(function() { var appName = "#{javascript:application['application_name']}"; $( ".navbar-default" ).prepend( "<a class='navbar-brand' href='init.xsp'>" + appName + "</a>" ); });