Adds javascript code for backbone