Add license headers, and make main.js executable

Signed-off-by: Timothy Gu <timothygu99@gmail.com>