Added code to load JS script