Php templates, menu js