add client.js script to layout