Added all prototype JS functionality