Minor changes to markup
Refactor js, add basic negamax code