Added init and fixed js path