Added init and fixed js import