Reorganize javascripts for better building, introduce source maps