Some basic java script