add js code to place objects