Added testing javascript