Online Test tool using php and javascript