Get js bits to work