How to append javascript variable inside PHP tag