add javascript object/fuction tips