hacked public dir compile to JS, working on validation