Split javascript into separate file and modify the filter to work for ports
and maintainers.