added js folder, started writing connection logic