fixed some of the dupicate "'" due to the pdo->quote() feature
starting the great object making of the js
Merge branch 'EMAx'