Quit php to js