javascript and php code styles