add javascript complete