php and javascript init commit