add js to create. dont know if i will keep this functionallity