Create board.js

javascript, original before using jquery UI