v1.1.7 removed direct javascript calls

v1.1.7 removed direct javascript calls