Updated to work with symfony 2.3 and jquery 1.10.1