refactoring js requests
Basic layout (#15)