moved kss.fn code to kss javascipt file