a simple js API to help you on the RWD media travel