First steps for JS port