adding javascript to rainforest application