remake javascript