Errors in Javascript in Liferay 6.1.1 #51