seperated javascript