no works when this js is located at root level