added javascript code for my objects