fix bug: application javascript working on all browsers