Divide to javascipt file.