Added javascript for homepage box